# 指定基础镜像
# FROM openjdk:8-jdk-alpine
FROM fabric8/java-centos-openjdk8-jdk
# 维护者信息
MAINTAINER haoren 81579811@qq.com
# 用于指定持久化目录
VOLUME /tmp
# 将本地文件添加到容器中
# RUN apt-get update && apt-get install -y curl vim net-tools iputils-ping &&
RUN mkdir -p /home
WORKDIR /home

ADD springcloudk8sdiscovery-1.0.jar /home/springcloudk8sdiscovery-1.0.jar
ADD run.sh /home/run.sh
RUN chmod +x /home/run.sh
# 指定于外界交互的端口
EXPOSE 9100
# 配置容器，使其可执行化
ENTRYPOINT exec java $JAVA_OPTS -jar /home/springcloudk8sdiscovery-1.0.jar